package com.imooc.o2o.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.imooc.o2o.entity.Excel;
import com.imooc.o2o.entity.PersonInfo;

public interface PersonInfoDao {
	public PersonInfo findLogin(PersonInfo vo)throws SQLException;
	
	int insertPersonInfo(PersonInfo personInfo);
	
	int updatePersonInfo(PersonInfo personInfo);
	
	int deletePersonInfo(long userId);
	
	PersonInfo queryByPersonInfoId(long userId);
	
	List<PersonInfo> queryPersonInfoList(@Param("rowIndex")int rowIndex,@Param("pageSize")int pageSize);

	int queryPersonCount();
}
